import styled from "styled-components"

export const HeaderWrap = styled.div `
    height: .44rem;
    background: #ee742f;
    font-size: .18rem;
    color: #fff;
    text-align: center;
    line-height: .44rem
`

export const SwiperWrao = styled.div `
    height: 0;
    font-size: 0;
    padding-bottom: 66.66667%;
    img {
        width: 100%;
    }
`

export const HotCateWarp = styled.div `
    header {
        line-height: .5rem;
        background: #fff;
        padding-left: .2rem;
        border-bottom: 1px solid darkgray;
    }
    .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        img {
            width: 70%;
        }
        span {
            margin-top: .05px;
        }
    }
`

export const HotListWarp = styled.div `
    border-top: 8px solid #F5F5F9;
    background: #fff;
    header {
        line-height: .5rem;
        background: #fff;
        padding-left: .2rem;
        border-bottom: 1px solid darkgray;
    }
    > div{
        display: flex;
        flex-wrap: wrap;
        figure{
            width: 40%;
            margin: 1em 15px;
            img{
                width: 100%;
            }
            &:nth-child(odd) {
                padding-right: .05rem;
            }
            &:nth-child(even) {
                padding-left: .05rem;
            }
            figcaption {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                height: .6rem;
                span {
                    font-size: 12px;
                }
            }
        }
    } 

`